package cn.rwklyd.BookKeeping.pojo;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.AllArgsConstructor;

import java.time.LocalDateTime;

@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName(value = "role_permissions")
public class RolePermission {
    @TableField(value = "role_id")
    @Schema(description = "角色ID")
    private Integer roleId;

    @TableField(value = "permission_id")
    @Schema(description = "权限ID")
    private Integer permissionId;

    @TableField(value = "created_at")
    @Schema(description = "分配时间")
    private LocalDateTime createdAt;
} 